data modify storage dab:system temp.list append value {value:""}
data modify storage dab:system temp.list[-1].value set from storage dab:system temp.macro_list[0]
data remove storage dab:system temp.macro_list[0]

#无元素跳出循环
execute store result score #temp temp run data get storage dab:system temp.macro_list
execute if score #temp temp matches ..0 run data remove storage dab:system temp.macro_list
execute if score #temp temp matches ..0 run return run scoreboard players reset #temp temp


function util:traversal/is_in_list/to_list_compound